import VueRouter from "vue-router";
import home from "./components/tabbar/home.vue";
import member from "./components/tabbar/member.vue";
import shopCar from "./components/tabbar/shopCar.vue";
import search from "./components/tabbar/search.vue";
import news from "./components/news/news.vue";
import newsInfo from './components/news/newsinfo.vue';
import photoList from './components/photos/photoList.vue';
import test from './components/test.vue';
import goodsList from './components/goods/goodsList.vue';
import goodsInfo from './components/goods/goodsInfo.vue';
let router = new VueRouter({
    routes:[
        {
            path:'/home',
            component:home
        },
        {path:'/member',component:member},
        {path:'/shopCar',component:shopCar},
        {path:'/search',component:search},
        {path:'/',redirect:'/home'},
        {path:'/home/news',component:news},
        {path:'/home/newsInfo/:id',component:newsInfo},
        // {path:'/home/photoList',component:photoList},
        {path:'/home/test/:id',component:test,name:'test'},
        {path:"/home/goodsList",component:goodsList},
        {path:'/home/goodsInfo/:id',component:goodsInfo}
    ],
    linkActiveClass:"mui-active"
})

export default router;